package com.czh.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("user-service")
@RequestMapping("/user")
public interface UserFeignApi {

    @GetMapping("/register/{email}/{password}/{code}")
    public int register(@PathVariable String email,
                        @PathVariable String password,
                        @PathVariable String code);
}
